/*
 * BaseBD.java
 *
 * Created on 18 de julio de 2005, 12:30 PM
 *
 * To change this template, choose Tools | Options and locate the template under
 * the Source Creation and Management node. Right-click the template and choose
 * Open. You can then make changes to the template in the Source Editor.
 */

package com.src.computec.radar.base.delegate;

import com.src.computec.radar.base.servicelocator.ServiceLocator;
import com.src.computec.radar.base.servicelocator.exception.ServiceLocatorException;
import java.io.*;
import javax.ejb.EJBHome;

/**
 *
 * @author Santiago
 */

public class BaseDelegate implements Serializable {
    
    /** Instancia BaseBD patron Singleton */
    ServiceLocator sl = null; 

    /** Creates a new instance of BaseBD */
    protected BaseDelegate() {
        sl = ServiceLocator.getInstance();                        
    }

    protected EJBHome getHome(String ejbName, Class clazz) throws ServiceLocatorException {
        return sl.getHome(ejbName, clazz);
    }
}